package com.xzx.annotation.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author xinzhixuan
 * @version V1.0
 * @date 2018/7/15 11:56
 */
@Component
public class Boss {

    private Car car;


    /*public Boss(Car car) {
        this.car = car;
    }*/

    public Car getCar() {
        return car;
    }

    @Autowired
    public void setCar(Car car) {
        this.car = car;
    }

    @Override
    public String toString() {
        return "Boss{" + "car=" + car + '}';
    }
}
